<template>
  <div class="home">
    <img alt="Vue logo" src="../assets/logo.png">
    <multiLanguage />
  </div>
</template>

<script>
// @ is an alias to /src
import multiLanguage from '@/components/multiLanguage.vue'

export default {
  name: 'HomeView',
  methods: {
    changeLanguage() {
      if (this.$i18n.locale === 'en') {
        this.$i18n.locale = 'fr'; // 切换到法语
      } else {
        this.$i18n.locale = 'en'; // 切换回英语
      }
    },
  },
  components: {
    multiLanguage
  }
}
</script>
